﻿// ***********************************************************************
// Assembly         : OSS.BIM
// Author           : tian_
// Created          : 09-04-2018
//
// Last Modified By : tian_
// Last Modified On : 09-04-2018
// ***********************************************************************
// <copyright file="BmSettingForm.cs" company="北京智帆高科科技有限公司">
//     Copyright © 北京智帆高科科技有限公司 2018
// </copyright>
// <summary></summary>
// ***********************************************************************
using System;
using System.Text;
using System.Windows.Forms;
using OSS.BIM.Utility;
using ZFGK.Utility;

namespace OSS.BIM.UI.Forms
{
    /// <summary>
    /// Class BmSettingForm.
    /// </summary>
    /// <seealso cref="DevExpress.XtraEditors.XtraForm" />
    public partial class BmSettingForm : DevExpress.XtraEditors.XtraForm
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="BmSettingForm"/> class.
        /// </summary>
        public BmSettingForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Handles the Load event of the AsSettingForm2 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void AsSettingForm2_Load(object sender, EventArgs e)
        {
            propertyGridBase.SelectedObject = BmConfigUtil.BaseConfig;
        }

        /// <summary>
        /// Handles the FormClosing event of the AsSettingForm2 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="FormClosingEventArgs"/> instance containing the event data.</param>
        private void AsSettingForm2_FormClosing(object sender, FormClosingEventArgs e)
        {
            StringBuilder stringBuilder = new StringBuilder();
            if (e.Cancel)
            {
                ZfMessageUtil.ShowWarning(stringBuilder.ToString());
            }
        }
    }
}